import request from "../../request.js";
// 首页轮播
export const getSlideshow = (params) => {
	return request.get('/app/platform/slideshow', params)
}
// 分类
export const getCategoryList = () => {
	return request.get('/app/category/list')
}
// 商家列表
export const getMerchantList = (params) => {
	return request.get('/app/merchant/list', params)
}
// 动态列表
export const getDynamicList = (params) => {
	return request.post(`/app/dynamic/list?pageSize=${params.pageSize}&pageNum=${params.pageNum}`, params)
}
// 教练列表
export const getAssistantList = (params) => {
	return request.get('/app/assistant/list', params)
}
// 关注列表
export const getMyAttentionList = (params) => {
	return request.get('/app/user/queryMyAttentionPageList', params)
}
// 收藏动态管理 动态id 收藏取消中 queryType  1收藏，2取消
export const collectDynamic = (params) => {
	return request.post('/app/dynamic/collect', params)
}
// 评论列表
export const getCommentList = (params) => {
	return request.get('/app/comment/list', params)
}
// 关注用户 与取消关注
export const attention = (params) => {
	return request.post(`/app/user/attention/${params.id}?type=${params.type}`)
}
// 评论
export const comment = (params) => {
	return request.post('/app/comment/publish', params)
}
// 推荐动态列表
export const getDynamicRecommendationsList = (params) => {
	return request.get(`/app/dynamic/recommendations?pageSize=${params.pageSize}&pageNum=${params.pageNum}&keyword=${params.releaseContent}`)
}
// 我的消息
export const getMsgList = (params)=>{
	return request.get(`/app/msg/list/${params.type}`, params)
}
 //推荐助教
//  /play-app/assistant/marketing/list
export const getAssistantMarketing = (city)=>{
	return request.get('/app/assistant/marketing/list?city='+city)
}
//小程序自动登录
export const getAutoLogin = (params)=>{
	return request.post('/auth/login/wx/code',params)
}
// 查询省市区列表
export const getAreaList = (params) => {
	return request.get('/app/area/list', params)
}
// 根据城市名字查询下属区域
export const getDistrictList = (params) => {
	return request.get('/app/area/city/district', params)
}
// 反馈
export const putBack = (params) => {
	return request.post('/app/platform/add/feedback', params)
} 